<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-once</title>
    <script src="../../js/vue3.js"></script>
    <style>
        #app{
            margin: 5rem auto;
            width: 50%;
            text-align: center;
        }
        p{
            font-size: 10rem;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <div id="app" >
       <p v-once>{{str}}</p>
       <input type="text" v-model="str" />
    </div>
    <script>
        const v_app = Vue.createApp({
            data(){
                return{
                    str:"hi"
                }
            }
        });
        v_app.mount("#app");
    </script>
</body>

</html>